import 'leaflet/dist/leaflet.css';
import * as Vue2Leaflet from 'vue2-leaflet';


let cmpFilter = ([key,val]) => key.startsWith('L') && !key.endsWith('Mixin');

export default {
  install(vm,options){
    Object.entries(Vue2Leaflet)
    .filter(cmpFilter)
    .forEach(([k,v])=>vm.component(k,v));
  }
}